import urllib,time
appid = 'taobao-mail5'

datafile = '/home/jay/ademail/data/xag'
url = 'http://%s.appspot.com/'%appid
#print url

f = open(datafile)
while True:
    line = f.readline()
    if not line:break
    email = line.strip()
    url2 = url + 'import_mail?e=%s'%email
    print url2
    urllib.urlopen(url2)
    time.sleep(0.5)
